package com.mashibing.remote;

import com.mashibing.internalcommon.dto.Car;
import com.mashibing.internalcommon.dto.ResponseResult;
import com.mashibing.internalcommon.response.OrderDriverResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("service-driver-user")
public interface ServiceDriverUserClient {
    @RequestMapping(method = RequestMethod.GET,value = "/cityDriver/isAvailableDriver")
    ResponseResult<Boolean> isAvailableDriver(@RequestParam String cityCode);

    @RequestMapping(method = RequestMethod.GET,value = "/getDriverUserInfoByCarId/{carId}")
    ResponseResult<OrderDriverResponse> getDriverUserInfoByCarId(@PathVariable String carId);

    @RequestMapping(method = RequestMethod.GET,value = "/getDriverById/{carId}")
    ResponseResult<Car> getDriverById(@PathVariable String carId);
}
